﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetCore8Demo.Tool
{
    public static class ExtendMethodTool
    {

        public static string FormatStringLog(this String msg)
        {
            return "[" + DateTime.Now + "] " + msg + Environment.NewLine;
        }


        public static int ToInt32(this String str)
        {
            int.TryParse(str, out int result);
            return result;
        }

    }
}
